try:
    do_smth()
<warning descr="Python version 3.4, 3.5, 3.6, 3.7, 3.8, 3.9 do not support this syntax.">except ImportError, ImportWarning:
    do()</warning>